package com.pdsu.graduation_design.listener;

import android.content.Context;

import com.pdsu.graduation_design.domain.CommodityType;

import java.util.List;

import q.rorbin.verticaltablayout.VerticalTabLayout;
import q.rorbin.verticaltablayout.widget.TabView;

public class MainActivityBarListener implements VerticalTabLayout.OnTabSelectedListener {
    /**
     * Main Activity 垂直导航栏监听器
     * @param tab
     * @param position
     */
//    private
    private List<CommodityType> commodityTypes;
    private Context context;

    public MainActivityBarListener(List<CommodityType> commodityTypes, Context context) {
        this.commodityTypes = commodityTypes;
        this.context = context;
    }

    @Override
    public void onTabSelected(TabView tab, int position) {


        System.out.println("点击了");


        //每次点击更新数据



    }

    @Override
    public void onTabReselected(TabView tab, int position) {


    }
}
